<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Staff extends Model
{
    protected $table = 'sf_staff';
    protected $primaryKey = 'id';

    public static function getStaffList(){
        return self::orderBy('created_at','desc')->select('name','thumb','position')->take(6)->get();
    }

    public static function getStaffMottos(){
        return self::orderBy('created_at','desc')->select('name','thumb','position','motto')->take(10)->get();
    }
}
